/**
 * 4.	用户输入一个数,判断是奇数还是偶数(三目运算符)
 */
package work2022_07_11;

import java.util.Scanner;

public class Test4 {

	public static void main(String[] args) {
		
		int num;
		//键盘输入
		Scanner sc = new Scanner(System.in);
		
		System.out.println("请输入一个数:");
		num = sc.nextInt();
		
		//能被2整除
		System.out.println(num%2==0 ? "偶数":"奇数");
		
		
		
		
		
		

	}

}
